package org.ilc.push;

import java.io.IOException;

public interface IResponse {

	/**
	 * 设置错误状态码
	 * @see IHeader
	 * @param status
	 */
	public IResponse setStatus(int status);
	public IResponse addHeader(String name, String value);
	public IResponse setBody(byte[] body);
	/**
	 * 将数据输出到客户端
	 * @throws java.io.IOException
	 *
	 */
	public void flush() throws IOException;
	/**
	 * 关闭该连接
	 */
	public void close();
	/**
	 * 销毁
	 */
	public void destroy();
}
